function check(id){
	var msg = $('#canuse').html();
	if(msg == "已启用")
	{
		msg = "禁止";
	}
	else
	{
		msg = "启用";
	}
	bootbox.dialog("是否"+msg+"该乘客?", [{
	    "label" : "取消"
	},{
	    "label" : "确定",
	    "class" : "btn-success",
	    "callback": function() {
	    	$.ajax({
	    	    type: 'GET',
	    	    url: server+"admin/passenger/competence/"+id ,
	    	    success: function(data){
	    	    	if(data.status=="success"){
	    	    		window.location.href=server+"admin/passenger/list";
	    	    	}else{
	    	    		bootbox.alert(data.msg);
	    	    	}
	    	    } ,
	    	    error:	function(data){
	    	    	bootbox.alert(""+msg+"失败");
	    	    },
	    	    dataType: "JSON"
	    	});
	    }
	} 
	]);
}